home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmUpdate
- BackColor = &H00808080&
- BorderStyle = 1 'Fixed Single
- ClientHeight = 930
- ClientLeft = 4305
- ClientTop = 2655
- ClientWidth = 4245
- ClipControls = 0 'False
- ControlBox = 0 'False
- Height = 1335
- Left = 4245
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 930
- ScaleWidth = 4245
- Top = 2310
- Width = 4365
- Begin Label lblWait
- BackStyle = 0 'Transparent
- Caption = "Please wait"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00008000&
- Height = 330
- Left = 1425
- TabIndex = 1
- Top = 450
- Width = 1440
- End
- Begin Label lblUpDate
- BackStyle = 0 'Transparent
- Caption = "UPDATING THE DISABLED BUTTON"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 150
- TabIndex = 0
- Top = 180
- Width = 3915
- End
- Option Explicit
- ' See Update_Button in Button.bas
- Sub Form_Activate ()
- Dim X As Integer
- Dim Y As Integer
- lblUpDate.Refresh
- lblWait.Refresh
- Screen.MousePointer = 11
- For X = 3 To BitMap.ButtonWidth - 4
- For Y = 3 To BitMap.ButtonHeight - 4 'QBColor(8)
- Select Case B(0).Point(X, Y)
- Case QBColor(0), QBColor(1), QBColor(2), QBColor(3), QBColor(4), QBColor(5), QBColor(6)
- B(2).PSet (X, Y), &H808080 'QBColor(8)
- If Inside_Array(X + 1, Y + 1) Then B(2).PSet (X + 1, Y + 1), &HFFFFFF
- Case QBColor(8)
- If Inside_Array(X - 1, Y - 1) Then 'QBColor(8) 'QBColor(7)
- If B(2).Point(X - 1, Y - 1) <> &H808080 Then B(2).PSet (X, Y), &HC0C0C0
- End If
- Case Else
- Rem
- End Select
- Next Y
- Next X
- Screen.MousePointer = 0
- UpDated = True
- Unload frmUpDate
- End Sub
- Sub Form_Load ()
- Position_Form frmUpDate
- End Sub
-